<!doctype HTML public "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- Click to Convert 5.2: Anything to HTML -->
<!-- http://www.clicktoconvert.com -->

<html>
<head>
<title>gravityboxscheduleuserguide - page 96 of 234</title>
<meta http-equiv=content-type content=text/html;charset=iso-8859-1>
<meta name="Generator" content="Click to Convert">

<!--Start of page styles-->
<STYLE TYPE="text/css">
<!--
 /* Foreground Image Styles */

 /* Position Styles */
 .ts96p0{position:absolute;left:106px;top:97px;}
 .ts96p1{position:absolute;left:352px;top:97px;}
 .ts96p3{position:absolute;left:672px;top:97px;}
 .ts96p7{position:absolute;left:106px;top:113px;}
 .ts96p8{position:absolute;left:706px;top:1026px;}
 .ts96p9{position:absolute;left:331px;top:1044px;}
 .ts96p13{position:absolute;left:106px;top:146px;}
 .ts96p14{position:absolute;left:106px;top:164px;}
 .ts96p15{position:absolute;left:106px;top:183px;}
 .ts96p17{position:absolute;left:106px;top:201px;}
 .ts96p18{position:absolute;left:106px;top:220px;}
 .ts96p19{position:absolute;left:106px;top:238px;}
 .ts96p20{position:absolute;left:106px;top:256px;}
 .ts96p22{position:absolute;left:106px;top:275px;}
 .ts96p23{position:absolute;left:106px;top:293px;}
 .ts96p24{position:absolute;left:106px;top:312px;}
 .ts96p27{position:absolute;left:106px;top:330px;}
 .ts96p28{position:absolute;left:106px;top:347px;}
 .ts96p30{position:absolute;left:106px;top:367px;}
 .ts96p31{position:absolute;left:106px;top:385px;}
 .ts96p32{position:absolute;left:106px;top:404px;}
 .ts96p34{position:absolute;left:106px;top:422px;}
 .ts96p35{position:absolute;left:106px;top:440px;}
 .ts96p36{position:absolute;left:106px;top:459px;}
 .ts96p38{position:absolute;left:106px;top:477px;}
 .ts96p39{position:absolute;left:106px;top:496px;}
 .ts96p40{position:absolute;left:106px;top:514px;}
 .ts96p42{position:absolute;left:106px;top:532px;}
 .ts96p43{position:absolute;left:106px;top:551px;}
 .ts96p45{position:absolute;left:106px;top:588px;}
 .ts96p46{position:absolute;left:106px;top:606px;}
 .ts96p48{position:absolute;left:106px;top:624px;}
 .ts96p50{position:absolute;left:106px;top:643px;}
 .ts96p51{position:absolute;left:106px;top:661px;}
 .ts96p52{position:absolute;left:106px;top:680px;}
 .ts96p54{position:absolute;left:106px;top:698px;}
 .ts96p55{position:absolute;left:106px;top:716px;}
 .ts96p57{position:absolute;left:106px;top:735px;}
 .ts96p58{position:absolute;left:106px;top:753px;}
 .ts96p59{position:absolute;left:106px;top:772px;}
 .ts96p61{position:absolute;left:106px;top:790px;}
 .ts96p62{position:absolute;left:106px;top:808px;}
 .ts96p64{position:absolute;left:106px;top:827px;}
 .ts96p65{position:absolute;left:106px;top:845px;}
 .ts96p67{position:absolute;left:106px;top:864px;}
 .ts96p68{position:absolute;left:106px;top:882px;}
 .ts96p69{position:absolute;left:106px;top:900px;}
 .ts96p71{position:absolute;left:106px;top:919px;}
 .ts96p73{position:absolute;left:106px;top:937px;}
 .ts96p74{position:absolute;left:106px;top:956px;}
 .ts96p75{position:absolute;left:106px;top:974px;}

 /* Font Styles */
 .ft0p96{font-style:normal;font-weight:bold;font-size:13px;font-family:arial,sans-serif;color:#000000;}
 .ft1p96{font-weight:normal;}
 .ft2p96{font-style:normal;font-weight:normal;font-size:13px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft3p96{font-style:normal;font-weight:normal;font-size:16px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft4p96{font-style:normal;font-weight:bold;font-size:11px;font-family:arial,sans-serif;color:#000000;}
 .ft5p96{font-style:normal;font-weight:normal;font-size:16px;font-family:arial,sans-serif;color:#000000;}
 .ft6p96{font-style:normal;font-weight:bold;font-size:16px;font-family:arial,sans-serif;color:#000000;}
 .ft7p96{font-style:normal;font-weight:bold;font-size:21px;font-family:arial,sans-serif;color:#808080;}

 /* Background Style */
 .styleBackground96{position:absolute;left:105px;top:1030px}

 /* Navigation Styles */
 .styleNavBarTop{position:absolute;left:0px;top:2px}
 .nb{position:absolute;left:2px;top:0px}
 .nbs{position:absolute;left:0px;top:0px}
 .nbe{position:absolute;left:836px;top:0px}
 .styleNavBarBot{position:absolute;left:0px;top:1117px}
-->
</STYLE>
<!--End of page styles-->

</head>
<body bgcolor="#ffffff" text="#000000" link="#0000FF" Vlink="#660099">

<table id="pageTable" width="836" STYLE="position: relative; left: auto; top: auto;"><tr><td>
<div class=nbs><img src="./navbarstart.gif" width="2" height="30"></div>
<div class=nb><img src="./navbar.gif" width="836" height="30" alt="Navigation bar"></div>
<div class=nbe><img src="./navbarend.gif" width="2" height="30"></div>
<div class=styleNavBarTop>
<table width="834" height="26" border="0" cellspacing="0">
  <tr align="left">
    <td width="4">&nbsp;</td>
    <td width="25" align="center"><a href="http://www.gravitybox.com" target="_parent"><img src="./home.gif" border="0" alt="Home"></a></td>
    <td width="25" align="center"><a href="#" onClick="window.open('./print.html','Printing','width=300,height=100,toolbar=no,directories=no');return false;"><img src="./print.gif" border="0" alt="Print document"></a></td>
    <td width="10" align="center"><img src="./separator.gif" border="0"></td>
    <td width="18" align="center"><a href="./index1.html"><img src="./start.gif" width="18" height="14" border="0" alt="Start"></a></td>
    <td width="18" align="center"><a href="./index95.html"><img src="./back.gif" width="14" height="14" border="0" alt="Previous page"></a></td>
    <td width="80" valign="middle"><table width="100%" height="16" border="0" cellspacing="1" bgcolor="#ACA899"><tr><td align="center" bgcolor="#ffffff"><font face=verdana,arial,sans-serif><font size="1">&nbsp;96 of 234&nbsp;</font></font></td></tr></table></td>
    <td width="18" align="center"><a href="./index97.html"><img src="./forward.gif" width="14" height="14" border="0" alt="Next page"></a></td>
    <td width="18" align="center"><a href="./index234.html"><img src="./end.gif" width="18" height="14" border="0" alt="End"></a></td>
    <td width="620">&nbsp;</td>
  </tr>
</table>
<p>
</div>
<nobr>
<div class=styleBackground96><img src="./background96.png" width="625" height="25" border="0" alt=""></div>
<div class=ts96p0><span class="ft0p96"> </span></div>
<div class=ts96p1><span class="ft0p96">Gravitybox Schedule Primer<span class="ft1p96"> </span></span></div>
<div class=ts96p3><span class="ft0p96">Page 94&nbsp; </span></div>
<div class=ts96p7><span class="ft2p96"> </span></div>
<div class=ts96p8><span class="ft3p96"> </span></div>
<div class=ts96p9><span class="ft4p96">1998&#45;2004 Gravitybox Software LLC<span class="ft3p96"> </span></span></div>
<div class=ts96p13><span class="ft5p96">must exist in the Rooms collection or an error will occur. The starting room must be less </span></div>
<div class=ts96p14><span class="ft5p96">than or equal to the ending room. The StartTime and EndTime parameters must be </span></div>
<div class=ts96p15><span class="ft5p96">valid times and they must be in the range of the schedule. The StartTime may be no </span></div>
<div class=ts96p17><span class="ft5p96">less than the schedule&#146;s property StartTime and the EndTime parameter may be no </span></div>
<div class=ts96p18><span class="ft5p96">more than the value of the schedule&#146;s StartTime plus DayLength. DayLength is the </span></div>
<div class=ts96p19><span class="ft5p96">length of the day in hours. The starting time must be less than or equal to the ending </span></div>
<div class=ts96p20><span class="ft5p96">time. The PrinterDeviceName of the PrinterParameters object is the name of the printer </span></div>
<div class=ts96p22><span class="ft5p96">to which the schedule is being sent. The Orientation property of the oPrinterParameters </span></div>
<div class=ts96p23><span class="ft5p96">object will determine whether the print job will be performed in portrait or landscape </span></div>
<div class=ts96p24><span class="ft5p96">mode. See the printer&#146;s documentation for an explanation of this concept. </span></div>
<div class=ts96p27><span class="ft5p96"> </span></div>
<div class=ts96p28><span class="ft6p96">Note: </span></div>
<div class=ts96p30><span class="ft5p96">Some developers have had problems creating the &#147;CPrinterParameter &#147;object in C++.&nbsp; </span></div>
<div class=ts96p31><span class="ft5p96">An object of this type is necessary to call the &#147;GoPrint&#148; method. To help these </span></div>
<div class=ts96p32><span class="ft5p96">developers, there is a helper method named &#147;GetPrinterParameter&#148;. Given a set of </span></div>
<div class=ts96p34><span class="ft5p96">parameters, this method will return a reference to an object of this type. You may use </span></div>
<div class=ts96p35><span class="ft5p96">the returned object as the last parameter to the &#147;GoPrint&#148; method. The </span></div>
<div class=ts96p36><span class="ft5p96">&#147;CPrinterParameter &#147; object is used to specify all of the necessary information to the </span></div>
<div class=ts96p38><span class="ft5p96">print routine, like paper size, copies, etc. So if you cannot call the print method because </span></div>
<div class=ts96p39><span class="ft5p96">you cannot create this object, just let the schedule create one for you and use it to print </span></div>
<div class=ts96p40><span class="ft5p96">the schedule. </span></div>
<div class=ts96p42><span class="ft5p96"> </span></div>
<div class=ts96p43><span class="ft7p96">PrintPageInfo </span></div>
<div class=ts96p45><span class="ft5p96">When printing, there is also the option of displaying the page information on each page </span></div>
<div class=ts96p46><span class="ft5p96">with the PrintPageInfo property. This property determines if the page positions are </span></div>
<div class=ts96p48><span class="ft5p96">printed. A schedule may be several pages across and down. This may cause confusion </span></div>
<div class=ts96p50><span class="ft5p96">as to how they are to be pieced together. If the PrintPageInfo property is set, the X and </span></div>
<div class=ts96p51><span class="ft5p96">Y positions are printed in the top, left corner of each page to facilitate the reconstruction </span></div>
<div class=ts96p52><span class="ft5p96">of large schedules. The format of this information is [X, Y], where X is the horizontal </span></div>
<div class=ts96p54><span class="ft5p96">position (1..N) and Y is the vertical position (1..M). There will be a total of M * N pages </span></div>
<div class=ts96p55><span class="ft5p96">printed. </span></div>
<div class=ts96p57><span class="ft5p96"> </span></div>
<div class=ts96p58><span class="ft5p96">During the process of printing, some sort of visual cues may be given to the user, as to </span></div>
<div class=ts96p59><span class="ft5p96">what is happening. Several events are provided to render this functionality. These </span></div>
<div class=ts96p61><span class="ft5p96">events aid in informing the user about the progress of the print. They inform of the </span></div>
<div class=ts96p62><span class="ft5p96">percent complete and determine if a print was canceled. </span></div>
<div class=ts96p64><span class="ft5p96"> </span></div>
<div class=ts96p65><span class="ft5p96">The PrintStart event is raised immediately after the GoPrint method is invoked and error </span></div>
<div class=ts96p67><span class="ft5p96">checking completes. An error may occur if the date or room range is invalid. Another </span></div>
<div class=ts96p68><span class="ft5p96">common source of errors is that an end value is less than a start value. For example, </span></div>
<div class=ts96p69><span class="ft5p96">the start date is June 3 and the end date is June 1. This is logically impossible, so an </span></div>
<div class=ts96p71><span class="ft5p96">error occurs. </span></div>
<div class=ts96p73><span class="ft5p96"> </span></div>
<div class=ts96p74><span class="ft5p96">The PrintDone event is raised, after the all pages have been sent to the printer. This will </span></div>
<div class=ts96p75><span class="ft5p96">be the last event of the sequence assuming that no errors occur and the printing is not </span></div>
<div class=styleNavBarBot>
<table width="836" border="0" cellspacing="2">
  <tr></tr>
  <tr>
    <td width="118"><a href="http://www.purepage.com"><img src="./smalllogo.gif" width="118" height="46" border="0" alt="http://www.purepage.com"></a></td>
    <td></td>
  </tr>
</table>
</div>

</td></tr></table>

</body>
</html>
